import requests

import requests
import os
url="https://f.video.weibocdn.com/001UQugWlx07x4rO42Ug01041201GBZE0E010.mp4?label=mp4_720p&template=1280x720.24.0&trans_finger=3e5d616a0b846b231c063771e4afedd3&Expires=1569051502&ssig=rpbANgNMN8&KID=unistore,video"
root = "D://pics//"
video_path = root + "Jaychou.mp4"
try:
    if not os.path.exists(root):
        os.mkdir(root)
    if not os.path.exists(video_path):
        r = requests.get(url)
        with open(video_path,'wb') as f:
            f.write(r.content)
            f.close()
            print("MV保存成功")
    else:
        print("文件已经存在")
except:
    print("文件爬取失败")